﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SharpSoft.Data
{
    /// <summary>
    /// 为属性自定义子查询,指定了子查询的属性对其设置<see cref="MappingNameAttribute"/>将无效。
    /// </summary>
    [System.AttributeUsage(AttributeTargets.Property, Inherited = true, AllowMultiple = false)]
    public class CustomQueryAttribute : Attribute
    {
        public CustomQueryAttribute(string queryStr)
        {
            this.QueryString = queryStr;
        }
        public string QueryString { get; set; }
    }
}
